#!/bin/bash
# 
# 测试三目运算

base_dir=$( [[ "$(hostname)" =~ ems-seve-* ]] && echo "/opt/ems-archive" || echo "/mnt/sdc/opt/ems-archive" )
echo "base_dir: $base_dir"